import { sum, minus } from './a.js'
require('expose-loader?expose=$!jquery');
import './css/1.css'
console.log(sum(1, 2))
console.log(minus(200, 10))
console.log(minus(200, 100))
import url from './img/1.jpeg'
import url2 from './img/2.png'
// JS中加载图片 需要使用 file-loader

// let img = document.createElement('img');
let img = new Image();
img.src = url;
document.body.appendChild(img);

let img2 = new Image();
img2.src = url2;
document.body.appendChild(img2);

let span = document.createElement('span');
span.className = 'iconfont icon-aixin'
document.body.appendChild(span);



let ary = [1, 2, 3, 4, 5];
ary.reduce((p, c) => { p + c });
// class Person{
//   a = 1
// }
// class Person{
//   constructor(){
//     this.a = 1
//   }
// }

// fetch('/x/web-interface/nav').then((res)=>res.json).then(data=>{
//   console.log(data)
// })

// fetch('/api/user').then((res)=>res.json).then(data=>{
//   console.log(data)
// })
fetch('/user2').then((res) => res.json()).then(data => {
  console.log(data)
})


console.log($)
var qqqq = 123;
1 === 1;